<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>时间的创建</title>
	<script>
		var now = new Date();

		// 获取星期
		var xq = now.getDay();//0-6

		// 获取年份
		var year = now.getFullYear();//2017
	</script>
</head>
<body>
	
</body>
</html>